package com.example.module_car.api

import com.example.lib_net.NetModule
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Qualifier
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object MotorCircleNetModule {
    @Provides
    @Singleton
    @NoticeApi
    fun provideNoticeApiService(@NetModule.CommonRetrofit retrofit: Retrofit) : CarApiService{
        return retrofit.create(CarApiService::class.java)
    }


    @Qualifier
    @Retention(AnnotationRetention.BINARY)
    annotation class NoticeApi

}